package com.blb.proxy;

/**
 * 电脑代理商
 */
public class ComputerShop implements ComputerSales{

    private ComputerSales factory = null;

    public ComputerShop(ComputerSales factory) {
        this.factory = factory;
    }

    @Override
    public void sellComputer(String brand) {
        //执行业务时，调用被代理对象的方法，同时进行功能扩展
        System.out.println(brand + "真好！功能很牛逼！");
        this.factory.sellComputer(brand);
        System.out.println("我们提供售后服务，欢迎光临");
    }
}
